<div class="applications index">
	<h2><?php __('Applications');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('user_id');?></th>
			<th><?php echo $this->Paginator->sort('created');?></th>
			<th><?php echo $this->Paginator->sort('modified');?></th>
			<th><?php echo $this->Paginator->sort('first_name');?></th>
			<th><?php echo $this->Paginator->sort('last_name');?></th>
			<th><?php echo $this->Paginator->sort('academic_title');?></th>
			<th><?php echo $this->Paginator->sort('place_of_birth');?></th>
			<th><?php echo $this->Paginator->sort('date_of_birth');?></th>
			<th><?php echo $this->Paginator->sort('sex');?></th>
			<th><?php echo $this->Paginator->sort('nationality');?></th>
			<th><?php echo $this->Paginator->sort('mailing_address');?></th>
			<th><?php echo $this->Paginator->sort('phone_number');?></th>
			<th><?php echo $this->Paginator->sort('rework_relatedness');?></th>
			<th><?php echo $this->Paginator->sort('comment');?></th>
			<th><?php echo $this->Paginator->sort('active');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($applications as $application):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $application['Application']['id']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($application['User']['id'], array('controller' => 'users', 'action' => 'view', $application['User']['id'])); ?>
		</td>
		<td><?php echo $application['Application']['created']; ?>&nbsp;</td>
		<td><?php echo $application['Application']['modified']; ?>&nbsp;</td>
		<td><?php echo $application['Application']['first_name']; ?>&nbsp;</td>
		<td><?php echo $application['Application']['last_name']; ?>&nbsp;</td>
		<td><?php echo $application['Application']['academic_title']; ?>&nbsp;</td>
		<td><?php echo $application['Application']['place_of_birth']; ?>&nbsp;</td>
		<td><?php echo $application['Application']['date_of_birth']; ?>&nbsp;</td>
		<td><?php echo $application['Application']['sex']; ?>&nbsp;</td>
		<td><?php echo $application['Application']['nationality']; ?>&nbsp;</td>
		<td><?php echo $application['Application']['mailing_address']; ?>&nbsp;</td>
		<td><?php echo $application['Application']['phone_number']; ?>&nbsp;</td>
		<td><?php echo $application['Application']['rework_relatedness']; ?>&nbsp;</td>
		<td><?php echo $application['Application']['comment']; ?>&nbsp;</td>
		<td><?php echo $application['Application']['active']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $application['Application']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $application['Application']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $application['Application']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $application['Application']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Application', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Current Research Outlines', true), array('controller' => 'current_research_outlines', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Current Research Outline', true), array('controller' => 'current_research_outlines', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Education Items', true), array('controller' => 'education_items', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Education Item', true), array('controller' => 'education_items', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Language Skills', true), array('controller' => 'language_skills', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Language Skill', true), array('controller' => 'language_skills', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Publications', true), array('controller' => 'publications', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Publication', true), array('controller' => 'publications', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Referees', true), array('controller' => 'referees', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Referee', true), array('controller' => 'referees', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Work Experiences', true), array('controller' => 'work_experiences', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Work Experience', true), array('controller' => 'work_experiences', 'action' => 'add')); ?> </li>
	</ul>
</div>